#import "BXContainer.h"

@implementation BXContainer

+ (id)containerWithOrigin:(NSPoint)origin size:(NSSize)size {
	return [[[self alloc] initWithOrigin:origin size:size] autorelease] ;
}

- (id)initWithOrigin:(NSPoint)origin size:(NSSize)size {
	self = [super init] ;
	
	_origin = origin ;
	_size = size ;

	return self ;
}

- (NSPoint)origin {
	return _origin ;
}

- (NSSize)size {
	return _size ;
}

- (NSRect)frame {
	return NSMakeRect(_origin.x -(_size.width /2), _origin.y -(_size.height /2), _size.width, _size.height) ;
}

@end